//
//  GroupViewController.h
//  iengage
//
//  Created by Luis Ziliani on 2/9/09.
//  Copyright Manas 2009. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>

#import "UserCollection.h"
#import "FileDownload.h"
#import "MyCLController.h"

@interface GroupViewController : UITableViewController <HttpRequestDelegate, MyCLControllerDelegate> {
	UINavigationController *navigationController;
	
	UserCollection *users;
	User * currentUser;
	
	NSString * fileName;
	
	UIBarButtonItem * refreshLocationButton;
	UIBarButtonItem * locateMeButton;
	
	MyCLController * locationController;	
	CLLocation *	location;
	
	int activityCount;
	UIActivityIndicatorView * activityIndicator;
	UILabel * indicatorLabel;
}

@property (nonatomic, retain)UINavigationController* navigationController;

@property (retain)UserCollection* users;
@property (retain)User* currentUser;
@property (retain)CLLocation* location;

@property (retain) NSString* fileName;

- (void) downloadUsers;

- (void) parseFile;

- (void) tryContinueWithOldData;
@end
